fixed validator bug