fixed cross browser issues