Fixes Firefox bug