bug invalid argument indexcontroller line 45 & 51