Fixing bash history issue