fix parameter passing bug in apps/bin/is_loaded