Fix issue with sequence of import (see #11001)