Fixed issue #40 Cut and paste of a formula fails