fix mistakes referencing post variable