minor bug in loading scriptlets