Fixed error line 250. Not sure if correct