Fixes an incorrect method reference.