fixed package loading bug (fixes #11)