Fixed lib loading for app with params