fix bgcolor when margin is out of range