Mh edit appointment bug

Fixes bug #38