fix various bugs in formspec menu