fixes fatal error in line 2879