Fixed weird bash bug