Fix edit button handler to use wrong post ID.