Corrected a bug crashing the Pebble