Remove undefined attributes