How to fix jagged edges around top