Minor warning fix with objects