Fixed a nasty bug which prevented switching correctly between pitch bars and other bar types.