fixed a foolish bug