BUG: fixed wrong Z dimension (issue #141)