plugin resize fix