Solve breaking prompt on command history