Fix type issues for post ID