Fixed broken variable assignment (id instead of object)