fixed error caused by last error fix