fix search function in grade master