Fixed problem rendering problem caused by debug record in edit