minor fix to res model