Sc query fix