Fixed a bug in the mode settings patch; closed #35.