bugfix in arm controller script