Switching some logic, fixing hdfsLength default on MEMZERO function