Fixes margin/location issues in a somewhat hack-y way.