improve firefox compatiablility