Fixed issue with doQueue when copying schema