fixed the reference layout