Fix active object being none.