Fix use of maxUserTemplate configuration variable