Bug: History saving empty commands