Trying to fis 'res' bug