Fixed bash var issue