bug fixed in finding hrs