fix validation of long fields