bug fix server-side after POST /edit