Fix our custom smart-table for angular 1.2.7