Fixed the error generation bug