Fixed a duplicated method.