fix more bugs in sps_basis photometry