Fix for unrecognized object error