Fix registration problem in Firefox/IE