Fixed error caused by removed method.