fixed safari issues and max dat range