Fixed bug when using sfi.py resources.