fix for validState