Fix conditional issue in post script