fixed freezing query rows