Fix for import once with sprites.

Fixes #1720.
Version 1.0.5