Plot resize fix