fixed valiation bug