Put instance check in wrong place.