Fixed a bug to generate non-cubic initial configuration.