Fix ngTable endless loop