fixed cross-browser compatibilityissues