Change parameter definition in mojo to avoid deprecation warning