fixed error map generator script