fixed a bug where the system size in y and z direction returned x