fix in spaceSurf not working in Firefox