Fixed expansion icon appearing when it shouldn't.