Fix label resizing problem