[fix #30] fix a bug in completions for class method