You attempted to use the fg or bg command when set–o monitor (or set –m was not set.
Turn on monitor mode with set –omonitor or set–m.