fixed query error
small fix