fixed error message on generation