fixed a bug with tab completion