fixed an issue causing IndexError
refactored the duplicate lines
changed the version to v0.5.7 and updated the changelog