Fixed error with cvAdd function.