Fix #457 and make style consistent between firefox and chrome