fixed bug in edit program