Fixed undesired behavior when moving a table to another schema (issue