fixed a minor api issue