Small bug fix in debug prev command