fixed error in argument validation