Fixed firefox bug