Resolvebug in validation