Fix get_object as data can be none