fixed ngGrid problem