fix syntax in post handler