fixed the ngTable problem