fix for validation