Fixed a minor bug in rangy core. See issue #57 on rangy tracker
Fixed typo