Fixed API inconsistency.