Small code cleanup in pebble engine