Fix small bug in getEdit