Fixes firefox bug #1