Fixed fatal error in versions lower than 1.9