fixed wrong validation with js compress