Fixing bash var error