fixing flush permalink error