fixed error in latest patch