fix pebble bugs
Merge branch 'master' of https://github.com/tomoon/sdk