Fix error when creating discussion