Fixed commands deformation when browsing history.