fixed code on post layout