fix row detection on safari (windows)