Fix some notices in access callbacks.