fixed two bugs.
Merge branch 'master' of github.com:mbeddr/mbeddr.core