fix tab completion in prompt window