Fix install_app and get_code methods