fixed bug with initialising pebble

Signed-off-by: Nicholas Jackson <nic@thatlondon.com>