fix missing #4 compatibility