clean up entity attribute