puavo-rest: fix variable type and name