Fixed bug in rotate_molecule script