Reference form going to wrong place