Fix compilation error ("server.ex:75: function function/3 undefined")