Fixed some firefox bug