MAIN: Fixed bug in diamond step indexing.