Fixed undefined error line 43