Fix whitespace bug in safari/ios