fixed another bug found by brian