minor fix for validation