Fix NoModificationAllowedError bad function call