fixed another boundary bug