small fixes in model template