fixed error messages for bg and fg