Fixed query in application