Fixing the emr-bash