Fixes object error for #252