Fix an issue which caused the SqlOutputForm to never be opened properly and generate incorrectly