Fixed wrong size after resized and toggled