Fix index out of range when reading sprites.
Updated to v0.2