--fix deprecated method call when Mojolicious version 4.0 --