Fixed small bug with scm import hook