Fixed running in background issue