apply(): Fixed error messages.