fixing out of bounds assignment. fixes #13
patch version