fix coords so it works in Firefox