Fix bugs in helper
Merge pull request #110 from wilsonge/feature-ajax

Fix bugs in helper