fix browser compatibillity