fixed error when there is no from_id attr