Fix error on validate exec statment