Fixing spacing and alignment on ref