Improve missing attribute detection