Potential bug in update_post