Fix incorrect usage of method.