Fixed background model issues