fixed typo (this shouldn't have caused any wrong results, only crashes)
fixed wrong name