remove attributes param if not defined