Refactor resize 'cause of case insensitive OS :sad: