Fix firefox dashed border bug