fix for bash bug