bug fix for post and topic controller