Fix merge form script