Fixed off by one error in android to pebble code