fixed bug in background fit selection