fixed another api bug