Fix a bug like the bug described in https://github.com/t3rm1n4l/megacmd/issues/6