Is the dependence of spectral index on luminosity real in optically selected AGN samples