Fix reference margins