fixed Edit close (for real this time)