Fixed dummy variable bug