 				if (StructKeyExists(loc, "wheelsError"))
 				{
 					loc.returnValue = $includeAndReturnOutput($template="wheels/styles/header.cfm");
-					loc.returnValue = loc.returnValue & $includeAndReturnOutput($template="wheels/events/onerror/wheelserror.cfm", wheelsError=loc.wheelsError);
-					loc.returnValue = loc.returnValue & $includeAndReturnOutput($template="wheels/styles/footer.cfm");
+					loc.returnValue &= $includeAndReturnOutput($template="wheels/events/onerror/wheelserror.cfm", wheelsError=loc.wheelsError);
+					loc.returnValue &= $includeAndReturnOutput($template="wheels/styles/footer.cfm");
 				}
 				else
 				{

				loc.mailArgs = {};
				$args(name="sendEmail", args=loc.mailArgs);
				if (StructKeyExists(application.wheels, "errorEmailServer") && Len(application.wheels.errorEmailServer))
					loc.mailArgs.server = application.wheels.errorEmailServer;
				loc.mailArgs.from = application.wheels.errorEmailAddress;
				loc.mailArgs.to = application.wheels.errorEmailAddress;
				loc.mailArgs.subject = application.wheels.errorEmailSubject;

		// We have to check if onErrorRequestTimeout exists since errors can be triggered before the application.wheels struct has been created.
		loc.requestTimeout = 70;
		if (StructKeyExists(application, "wheels") && StructKeyExists(application.wheels, "onErrorRequestTimeout"))
		{
			loc.requestTimeout = application.wheels.onErrorRequestTimeout;
		}
		$setting(requestTimeout=loc.requestTimeout);

		loc.returnValue = $simpleLock(execute="$runOnError", executeArgs=arguments, name="wheelsReloadLock", type="readOnly", timeout=180);
