Fix #6 and update for Mojolicious 5