fixed issue when end was undefined
bumped to v1.1.2