bugfix of empty 'topicid' problem on edit ( fix #3 )