#223236 by John Morahan. Fixes variable name that was preventing block visibility settings from being used properly