Fix cross browser compatability