added missing if brackets. decommented getSystemChunk memory check