Fix strict error of method declaration.