Added warning in resize methods