Fixed firefox bugs