fixed some bugs in power_spec and lum_func