Fixed a teensy bug in the chunk class.