Correct handling of internal coordinate error