fixed a few indexing and initalization errors in zonemap. a wonder it
worked at all ...