Trying to fix res